Hook for fetching and combining transaction history across multiple chains
UseQueryResult<Transaction[]>
UseQueryResult
with transaction data. Here’s the detailed structure:
Transaction[] | undefined
Array of transactions from all specified chains, sorted by timestamp (newest first). Each transaction includes:
txnHash
: Transaction hashchainId
: Chain ID where transaction occurredtimestamp
: Transaction timestampblockNumber
: Block number where transaction was minedblockHash
: Hash of the blockmetaTxnID
: Optional meta transaction IDtransfers
: Array of transfer objects with normalized addressesboolean
Loading state for the initial data fetch.
boolean
Error state indicating if the query failed.
Error | null
Any error that occurred during data fetching.
GetTransactionHistorySummaryArgs
Parameter | Type | Description |
---|---|---|
accountAddress | string | The account address to fetch transactions for |
chainIds | number[] | Array of chain IDs to fetch transactions from |
HooksOptions
Parameter | Type | Description |
---|---|---|
disabled | boolean | (Optional) Disable the query from automatically running |
retry | boolean | (Optional) Whether to retry failed queries |